package com.kirk.crawler.webService.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *  <p> WebServiceUtil.java </p>
 *
 * @Author      kirkliu
 * @Date        2020-08-29 22:35
 * @version     1.0.0
 * @Description WebService工具类
 */
public class WebServiceUtil {

	private static WebServiceUtil instance = new WebServiceUtil();

	private ApplicationContext wsCtx = null;
	
	public static WebServiceUtil getInstance(){
		return instance;
	}
	
	
	/**
	 * @return the wsCtx
	 */
	public ApplicationContext getWsCtx() {
		return wsCtx;
	}


	private WebServiceUtil(){
		wsCtx = new ClassPathXmlApplicationContext("spring/spring-cxf-client.xml");
	}
	
	

}
